<div class="content-section implementation GridDemo" id="myContent" >
    <div class="title col-sm-12">
        <div class="col-sm-1">
            <span>{{formTitle}}</span>
        </div>
        <div class="col-sm-11 pull-right">
            <button type="button"
                    class="pull-right"
                    pButton
                    (click)="goBack()"
                    icon="fa-close"
                    style="width: 30px"></button>
        </div>
    </div>
    <form [formGroup]="myForm" class="form-horizontal">
        <div class="form-group switch-style">
            <div class="col-sm-12 ui-no-padding-left-15px ui-padding-10px">
                <button class="ui-margin-right-10px" pButton type="button" (click)="switch('0')" label="基本信息" ></button>
                <button  class="ui-margin-right-10px" pButton type="button" (click)="switch('1')" label="关联工单" ></button>
                <button pButton type="button"  label="履历" (click)="switch('2')"></button>
            </div>
        </div>
        <div [ngSwitch]="switchValue">
            <div *ngSwitchCase="0" >
                <app-klg-view-attachment></app-klg-view-attachment>
                <div class="form-group ">
                    <label class="col-sm-2 control-label">
                        <span ngClass="start_red">*</span>
                        审批意见：</label>
                    <div class="col-sm-10 ui-no-padding-left-15px ui-fluid">
                        <input type="text" pInputText
                               formControlName="remark"
                               [(ngModel)]="formObj.remark"/>
                        <app-field-error-display
                                [displayError]="isFiledValid('remark')"
                                 errorMsg="不能为空"></app-field-error-display>
                    </div>
                </div>
                <div class="form-group ">
                    <div class="col-sm-12 ui-no-padding-left-15px ">
                        <button class="pull-right  ui-button-secondary" pButton type="button"  label="取消" (click)="goBack()"></button>
                        <button  class="pull-right ui-margin-right-10px" pButton type="button" (click)="submit('0')" label="驳回" ></button>
                        <button class="pull-right ui-margin-right-10px" pButton type="button" (click)="submit('1')" label="通过" ></button>
                    </div>
                </div>
            </div>
            <div *ngSwitchCase="1">
                <!--<div class="form-group switch-style">-->
                    <!--<div class="col-sm-12 ui-no-padding-left-15px ui-padding-10px">-->
                        <!--<button class="pull-right ui-margin-right-10px" pButton type="button" (click)="deleteOrder()" label="删除" ></button>-->
                        <!--<button  class="pull-right ui-margin-right-10px" pButton type="button" (click)="openEquipList()" label="关联工单" ></button>-->
                    <!--</div>-->
                <!--</div>-->
                <div class="form-group switch-style">
                    <div class="col-sm-12 ui-no-padding-left-15px ui-padding-10px">
                        <app-klg-associate-order-table></app-klg-associate-order-table>
                    </div>
                </div>
            </div>
            <div *ngSwitchCase="2">
                <div class="form-group switch-style">
                    <div class="col-sm-12 ui-no-padding-left-15px ui-padding-10px">
                        <app-klg-curriculum-table></app-klg-curriculum-table>
                    </div>
                </div>
            </div>
        </div>
    </form>

